#include "Boxer.h"

Boxer::Boxer(): mPx(0),mHitPoints(0)
{
	boxerBehaviour= new AiBehaviour;
}

Boxer::~Boxer(void)
{
	delete[] mName;
	delete boxerBehaviour;
}

const int & Boxer::GetPx()
{
	return mPx;
}

void Boxer::SetName(char * aName)
{
	mName=aName;
}

const char * Boxer::GetName() const
{
	return mName;
}

void Boxer::SetHitPoints(const int aHitPoints)
{
	mHitPoints=aHitPoints;
}

const int & Boxer::GetHitPoints() const
{
	return mHitPoints;
}

Punch Boxer::Attack()
{
	return boxerBehaviour->Attack(this);
}

void Boxer::Defense(Punch aPunch)
{
	boxerBehaviour->Defense(aPunch, this);
}